package com.clw.service;


import com.clw.dataobject.Buyer;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by Administrator on 2017-12-15.
 */
public interface BuyerService {
    boolean hasMore(String buyerName);
    
    List<Buyer> findAll();

    Buyer save(Buyer buyer);

    void del(Buyer buyer);

    Buyer add(Buyer buyer);

    Buyer findByBuyerName(String buyerName);

    Buyer findOne(Integer id);

    Page<Buyer> findAll(String name, String phone, Pageable pageable);

    Long getSize(String name, String phone);

}
